package cn.ad.server.domain.ad;

import java.io.Serializable;


public class InteractionRedirects implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3156553163675962616L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "interactionRedirects";
	
	private long id;
	private String targetUrl;
	
	public static String cacheKey(long id) {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTargetUrl() {
		return targetUrl;
	}

	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}

	
}
